import request from '@/utils/request'

// 查询分销等级列表
export function listDistributionGrade(query) {
  return request({
    url: '/ruoyi/distributionGrade/list',
    method: 'get',
    params: query
  })
}

// 查询分销等级详细
export function getDistributionGrade(gradeId) {
  return request({
    url: '/ruoyi/distributionGrade/' + gradeId,
    method: 'get'
  })
}

// 新增分销等级
export function addDistributionGrade(data) {
  return request({
    url: '/ruoyi/distributionGrade',
    method: 'post',
    data: data
  })
}

// 修改分销等级
export function updateDistributionGrade(data) {
  return request({
    url: '/ruoyi/distributionGrade',
    method: 'put',
    data: data
  })
}

// 删除分销等级
export function delDistributionGrade(gradeId) {
  return request({
    url: '/ruoyi/distributionGrade/' + gradeId,
    method: 'delete'
  })
}
